package com.thoughtworks.biblioteca;



//Understands a user of Biblioteca.
public class User {
	private String userName;
	private String password;
	
	UserDB userDB;

	public User(String userName) {
		this.userName = userName;
		userDB = new UserDB();
		userDB.addUser(this.userName);

	}

	public void setPassword(String newPassword) {
		this.password = newPassword;
		userDB.setPassword(userName,password);

	}
	
}
